package jsu.yym.tiktok.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mysql.cj.exceptions.DataReadException;
import lombok.Data;

import java.sql.Date;

@Data
@TableName(value = "video")
public class Video {
    private String username;
    private String context;
    private Date createTime;
    private Date updateTime;
    private int isDelete;
    @TableId(value = "pk_id",type = IdType.AUTO)
    int pkId;
    private int state;
    private String label;
    private int count;//浏览量
    private String src;//视频地址
    private int likes;//点赞量
    private int collections;//收藏量
    private int shares;//转发量
    private String fileName;
    private String image;//视频封面
    private String imgUser;

    public Video(String context, int pkId, String label) {
        this.context = context;
        this.pkId = pkId;
        this.label = label;
    }

    public Video() {
    }
}
